package com.stg.bean;

import java.util.Date;

import org.springframework.stereotype.Component;

@Component
public class Message {

	private Long id;			//主键
	private Long senderId;		//发送方ID
	private Long receiverId;	//接收方ID
	private String content;		//发送内容
	private Date sendTime;		//发送时间
	private String title;		//标题
	private int status;			//发送状态：0.未发送；1.已发送但未接收；2.已接收
	private int is_del;			//是否删除：0.未删；1.已删
	public Long getSenderId() {
		return senderId;
	}
	public void setSenderId(Long senderId) {
		this.senderId = senderId;
	}
	public Long getReceiverId() {
		return receiverId;
	}
	public void setReceiverId(Long receiverId) {
		this.receiverId = receiverId;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getSendTime() {
		return sendTime;
	}
	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getIs_del() {
		return is_del;
	}
	public void setIs_del(int is_del) {
		this.is_del = is_del;
	}
	@Override
	public String toString() {
		return "Message [id=" + id + ",senderId=" + senderId + ", receiverId=" + receiverId
				+ ", content=" + content + ", sendTime=" + sendTime
				+ ", status=" + status + ", title=" + title + ", is_del=" + is_del + "]";
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
}
